CC = gcc
CFLAGS = -g -std=gnu99 `pkg-config gtk+-2.0 --cflags`
LIBS = pthread X11 
includedir =
libdir = 
objects := $(patsubst %.c,%.o,$(wildcard *.c))
libs = $(patsubst %,-l%,$(LIBS)) `pkg-config gtk+-2.0 --libs`

test:$(objects)
	$(CC) -o $@ $(objects) $(libs) $(libdir) 
	
.o:
	$(CC) -o $@ -c $(CFLAGS) $(includedir) $< 

clean:
	rm *.o test
